<template>
	<view style="padding:40rpx;">
		<view class="content" v-html="Content.HelpMemo"></view>
		<!-- html 解析 white-space:pre-wrap;-->
		<!-- <fui-parse-group>
			<fui-parse :nodes="Content.HelpMemo"></fui-parse>
		</fui-parse-group> -->

	</view>
</template>

<script>
	export default {
		data() {
			return {
				Content: ''
			};
		},
		onLoad(option) {
			this.getContent(option.cid)
		},
		methods: {
			getContent(cid) {
				this.$httpost('/Content/GetContent', {
					ContentID: cid
				}).then(res => {
					if (res.code == 200) {
						this.Content = res.data.Content
						
						wx.setNavigationBarTitle({
						  title: res.data.Content.HelpTitle
						});
						// .replace(/&nbsp;/g, '&ensp;')
					}
				});
			},
		}
	}
</script>

<style lang="scss">
	.content {
		font-size:26rpx;line-height:50rpx;font-weight:400;color:#606060;
	}
	.content rich-text p img {width:100%}
	p {
		text-indent: 2em;
	}
</style>
